Learn R Programming

EMCluster (version 0.2-10)

Print and Summary: Functions for Printing or Summarizing Objects According to Classes

Description

Several classes are declared in EMCluster, and these are functions to print and summary objects.

Usage

# S3 method for emret
print(x, digits = max(4, getOption("digits") - 3), ...)
# S3 method for emret
summary(object, ...)
# S3 method for svd
summary(object, ...)

Arguments

x

an object with the class attributes.

digits

for printing out numbers.

object

an object with the class attributes.

other possible options.

Value

The results will cat or print on the STDOUT by default.

Details

These are useful functions for summarizing and debugging.

References

http://maitra.public.iastate.edu/

See Also

init.EM, emcluster, starts.via.svd.

Examples

Run this code
# NOT RUN {
library(EMCluster, quietly = TRUE)
x2 <- da2$da

emobj <- list(pi = da2$pi, Mu = da2$Mu, LTSigma = da2$LTSigma)
eobj <- e.step(x2, emobj = emobj)
emobj <- m.step(x2, emobj = eobj)
summary(emobj)

ret <- starts.via.svd(x2, nclass = 10, method = "kmeans")
summary(ret)
# }

Run the code above in your browser using DataLab